package com.youlu.campus.admin.tencentcloud.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 腾讯云配置
 *
 * @Description: TencentCloudConfig
 * @Date 2025/8/20
 * @module TencentCloudConfig
 * @author: su
 */
@Data
@Document(collection = "tencent_cloud_config")
public class TencentCloudConfig {

    public static final String DNS = "dns";
    public static final String CLB = "clb";
    public static final String INSTANCE = "instance";

    @Id
    private String id;

    /**
     * 主账号
     */
    private String masterNum;

    /**
     * 配置类型  dns-DNS解析 clb-负载均衡 instance-实例
     */
    @Indexed(unique = true)
    private String type;

    /**
     * 访问域名
     */
    private String endpoint;

    /**
     * secretId
     */
    private String secretId;

    /**
     * secretKey
     */
    private String secretKey;


    private Date createdTime;

    private Date updatedTime;
}
